﻿<%@ Page Language="C#"  AutoEventWireup="true" CodeBehind="PlanFacturacion.aspx.cs" Inherits="DECOR.WebApp.PlanFacturacion" Title="Untitled Page" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<%@ Register assembly="IdeaSparx.CoolControls.Web" namespace="IdeaSparx.CoolControls.Web" tagprefix="cc2" %>



<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
    
    <style type="text/css">
        body
        {
        	font-family: Arial, Tahoma;
            font: 10px;
            padding: 0 0 0 0;
        }
        
        #topContent
        {
        	height:80pt;
        }
        
        #logo
        {
        	float: left;
        	text-align: left;
        }
        #fecha
        {
        	float: right;
        	text-align: left;
        	padding-top: 20pt;
        	padding-right: 50pt;
        	width: 150pt;
        	font-family: Arial, Helvetica, sans-serif;
            height: 75px;
        }
        
        #mainContent
        {
        	height:43px;
        }
        
        #tituloContent
        {
        	height:26px;
            width: 409px;
        }
        
        #direccion
        {
        	font-family: Arial, Helvetica, sans-serif;
        	width: 200pt;
        	height: 21pt;
        }
        #titulo
        {
        	width: 200pt;
        	float: left;
        	text-align: center;
            height: 17px;
            margin-right: 0px;
        }
        #otroDerecha
        {
        	width: 131pt;
        	float: right;
        	text-align: left;
        }
        #Div2
        {
            height: 43px;
            /*width: 275px;*/
            width: 220px;
        }
        .style11
        {
            height: 289px;
        }
        .style12
        {
            font-size: x-small;
        }
        </style>
    <link rel ="stylesheet"  href="css/Impresion.css" />
    <link rel ="stylesheet"  href="css/Controls.css" />
    <link rel ="stylesheet"  href="css/Master.css" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <div>
    <table style="width: 498px; margin-right: 0px; font-size: small;" class="style11">
         
            <tr><td style="text-align: center" class="style12"> Plan de Facturación </td> </tr>   
            <tr><td style="text-align: center" class="style12"> Valor Neto &nbsp;&nbsp;
                <asp:Label ID="lblValorNeto" runat="server"></asp:Label> &nbsp;&nbsp;
                <asp:Label ID="lblMoneda" runat="server"></asp:Label>

                        </td> 
            </tr> 
        
            <tr><td style="text-align: left"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                    <asp:ImageButton ID="ibtnSet" runat="server" ImageUrl="~/img/save.png" 
                                ImageAlign="Middle" OnClick="ibtnSet_Click" Height="19px" 
                    Width="17px" ToolTip="Grabar/Actualizar" />
                &nbsp;&nbsp;&nbsp;

                    <asp:ImageButton ID="ibtnAdd" runat="server" ImageUrl="~/img/addItem.png" 
                                ImageAlign="Middle" OnClick="ibtnAdd_Click" Height="19px" ToolTip="Agregar"
                    Width="17px" />

                        </td> 
            </tr> 
        
        <tr> 
             
             
                 <td>

                <cc2:CoolGridView ID="gvPlanFact" runat="server" CssClass="tbl-detalle"
                                AutoGenerateColumns="False" GridLines="None" AllowResizeColumn="false"
                                AllowSorting="false" Height="270px" AllowPaging="false" Width="100%" 
                                OnRowDataBound="gvPlanFact_RowDataBound"  DefaultColumnWidth="1200px" ShowFooter="false" ShowHeader="true">
                    <Columns>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <table style="table-layout:fixed;  width:1200px; border:0; font-size :9;">
                                    <tr>
                                        <th style="width:30px;">
                                            <img src="img/del.png" alt="Del" 
                                                            title="Borrar" /></th>
                                        <th style="width:70px; background-color: #00FFFF;" align="center" >
                                            F. Fact.</th>
                                        <th style="width:80px; background-color: #00FFFF;" align="center" >
                                            Denom.</th>
                                        <th style="width:70px; background-color: #00FFFF;" align="center" >
                                            %</th>
                                        <th style="width:100px;" align="center" >
                                            Valor Fact.</th>
                                        <th style="width:50px;" align="center" >
                                            Moneda</th>
                                        <th style="width:90px;" align="center" >
                                            Bloq</th>
                                        <th style="width:90px;" align="center" >
                                            RglF</th>
                                        <th style="width:90px;" align="center" >
                                            Status</th>
                                        <th style="width:75px;" align="center" >
                                            Cpag.</th>
                                        <th style="width:75px; background-color: #00FFFF;" align="center" >
                                            Cat. F.</th>
                                        <th style="width:85px;" align="center" >
                                            C. Fact.</th>
                                        <th style="width:80px;" align="center" >
                                            Nro. Hito</th>
                                        <th style="width:40px;" align="center" >
                                            Fij</th>
                                    </tr>
                                </table>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <table style="table-layout:fixed; width:1200px; border:0; font-size :9;" 
                                                align="left">
                                    <tr>
                                        <td id="tcChkBorrar" runat="server" style="text-align:center; width:30px;">
                                            <asp:CheckBox ID="chkBorrar" runat="server" width="30px" 
                                                            ToolTip='<%# Bind("FPLTR") %>' />
                                            <asp:HiddenField ID="hidPosicion" runat="server" Value='<%# Bind("FPLTR") %>' />
                                        </td>
                                        <td style="text-align:center;width:70px; ">
                                            <asp:TextBox ID="txtFechaFact" runat="server" width="70px"  Format="dd/MM/yyyy" 
                                                            Text='<%# Bind("FKDAT") %>' />
                                            <cc1:CalendarExtender ID="ceFechaFactG" runat="server" TargetControlID="txtFechaFact"
                                                            Format="dd/MM/yyyy" CssClass="MyCalendar" Enabled="True">
                                            </cc1:CalendarExtender>
                                        </td>
                                        <td style="text-align:left; width:80px;">
                                            <asp:DropDownList Width="80px" ID="cmbDenom"  runat="server" >
                                            </asp:DropDownList>
                                        </td>
                                        <td style="text-align:center; width:70px; ">
                                            <asp:TextBox ID="txtPorc" MaxLength="8" width="70px"  
                                                            Text='<%# DataBinder.Eval(Container.DataItem, "FPROZ","{0:n3}") %>' 
                                                            runat="server" CssClass="inputbox-number" />
                                        </td>
                                        <td style="text-align:center;width:100px;">
                                            <asp:Label ID="lblValFact" width="100px"  runat="server" 
                                                            Text='<%# DataBinder.Eval(Container.DataItem, "FAKWR","{0:n3}") %>'/>
                                        </td>
                                        <td style="text-align:center;width:50px;">
                                            <asp:DropDownList ID="cmbMoneda" width="50px"  runat="server" 
                                                            AutoPostBack="false"/>
                                        </td>
                                        <td style="text-align:center; vertical-align:top; width:90px;">
                                            <asp:DropDownList ID="cmbBloq" width="90px"  runat="server" 
                                                            AutoPostBack="false"/>
                                        </td>
                                        <td style="text-align:center; vertical-align:top;width:90px;">
                                            <asp:DropDownList ID="cmbRglF" width="90px"  runat="server" 
                                                            AutoPostBack="false"/>
                                        </td>
                                        <td style="text-align:center; vertical-align:top;width:90px;">
                                            <asp:DropDownList ID="cmbStatus" width="90px"  runat="server" />
                                        </td>
                                        <td style="text-align:center;width:75px;">
                                            <asp:DropDownList ID="cmbCpag" width="95px"  runat="server" />
                                        </td>
                                        <td style="text-align:center;width:75px;">
                                            <asp:DropDownList ID="cmbCatF" width="75px"  runat="server"  />
                                        </td>
                                        <td style="text-align:center;width:85px;">
                                            <asp:DropDownList ID="cmbClaseFact" width="85px"  runat="server" />
                                        </td>
                                        <td style="text-align:center; padding-right: 5px; width:80px;">
                                            <asp:TextBox ID="txtNroHito" runat="server" width="80px"  
                                                            Text=' <%# Bind("MLSTN") %>'></asp:TextBox>
                                        </td>
                                        <td style="text-align:center; padding-right: 5px; width:40px;">
                                            <asp:TextBox ID="TextBox1" width="40px" runat="server"></asp:TextBox>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <BoundaryStyle BorderColor="Gray" BorderWidth="1px" BorderStyle="Solid">
                    </BoundaryStyle>
                </cc2:CoolGridView>


                 
                </td> 
         </tr>   
        <tr>
        <td style="text-align: center"> 

    <script type="text/javascript">
        function calendarShown(sender, args){
            sender._popupBehavior._element.style.zIndex = 99999999;
        }
    </script>

            </td> </tr>   
    </table>
    </div>

        
    <!--------------------------------------------->
    </form>
    
    </body>
    </html>